<template>
  <div id="app">
    <img alt="Vue logo" src="./assets/logo.png">
    <p>hello {{ userInfo }}</p>
    <HelloWorld msg="Welcome to Your Vue.js App hello icanci   xxxxx 001 "/>

  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'
import axios from "axios";

export default {
  name: 'App',
  components: {
    HelloWorld
  },
  data() {
    return {
      userInfo: {}
    }
  },
  created() {
    let vm = this
    console.log("userInfo", vm.userInfo)
    axios({
      method: 'get',
      url: '/index/sayHello'
    }).then(function (res) {
      console.log(res)
      vm.userInfo = res.data.obj
    });
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
